package com.ms.p2p.service;

import com.alibaba.dubbo.config.annotation.Reference;
import com.ms.p2p.entity.system.Dictionary;
import com.ms.p2p.provider.DictionaryProvider;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by daimajia on 2015/4/22.
 */
@Service
public class DictionaryService {
    @Reference
    DictionaryProvider dictionaryProvider;


    public  String getValue(String nid, String key) {
        return dictionaryProvider.getDictValue(nid, key);
    }
    public  List<Dictionary> getDictListNid(String nid) {
        return dictionaryProvider.getdictListByTypeId(nid);
    }

}
